-- GENERATED SPELL FOR [Mobile Alert System] --


function spell0_7849(pUnit, Event) --@Flare,n/a--
pUnit:FullCastSpellOnTarget(1543,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7849', 20000, 1)
end

function Sorts_7849(pUnit, Event)
local choix_sorts_7849 = math.random(0, 0)
if choix_sorts_7849 == 0 then
pUnit:RegisterEvent('spell0_7849', 1, 1)
end
end

function mob7849_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7849', math.random(1500, 3000), 1)
end

function mob7849_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7849_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7849_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7849, 1, 'mob7849_Action')
RegisterUnitEvent(7849, 2, 'mob7849_Leave')
RegisterUnitEvent(7849, 3, 'mob7849_Kill')
RegisterUnitEvent(7849, 4, 'mob7849_Die')
